  /**
   * Generate time : 2016-10-28 10:37:51
   * Version : 1.0.1.V20070717
   */
package com.baosight.scaq.aq.ci.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCIPenalty 
 * table comment : 罚款信息 
 */
public class AQCIPenalty extends DaoEPBase {

	private String fdKeyId = " ";		
	private String fdEmployeename = " ";		/* 姓名*/
	private String fdVirtualDate = " ";		/* 日期*/
	private String fdName = " ";		/* 矿名*/
	private String fdDepartmentrolename = " ";		/* 部门*/
	private BigDecimal fdBuyoutamount = new BigDecimal("0");		/* 隐患买断*/
	private BigDecimal fdPunishmentamount = new BigDecimal("0");		/* 隐患终审处罚*/
	private BigDecimal fdPenaltyamount = new BigDecimal("0");		/* 违章处罚*/
	private BigDecimal fdOtheramount = new BigDecimal("0");		/* 其他处罚*/
	private BigDecimal fdAccidentamount = new BigDecimal("0");		/* 事故处罚*/
	private BigDecimal fdTotalamount = new BigDecimal("0");		/* 总金额*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEmployeename");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("姓名");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿名");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentrolename");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBuyoutamount");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("隐患买断");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPunishmentamount");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("隐患终审处罚");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPenaltyamount");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("违章处罚");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOtheramount");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("其他处罚");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAccidentamount");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("事故处罚");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdTotalamount");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("总金额");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public AQCIPenalty() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId 
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdEmployeename - 姓名
	 * @return the fdEmployeename
	 */
	public String getFdEmployeename() {
		return this.fdEmployeename;
	}
	
	/**
	 * set the fdEmployeename - 姓名
	 */
	public void setFdEmployeename(String fdEmployeename) {
		this.fdEmployeename = fdEmployeename;
	}
	
	/**
	 * get the fdVirtualDate - 日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	
	/**
	 * get the fdName - 矿名
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 矿名
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	/**
	 * get the fdDepartmentrolename - 部门
	 * @return the fdDepartmentrolename
	 */
	public String getFdDepartmentrolename() {
		return this.fdDepartmentrolename;
	}
	
	/**
	 * set the fdDepartmentrolename - 部门
	 */
	public void setFdDepartmentrolename(String fdDepartmentrolename) {
		this.fdDepartmentrolename = fdDepartmentrolename;
	}
	
	/**
	 * get the fdBuyoutamount - 隐患买断
	 * @return the fdBuyoutamount
	 */
	public BigDecimal getFdBuyoutamount() {
		return this.fdBuyoutamount;
	}
	
	/**
	 * set the fdBuyoutamount - 隐患买断
	 */
	public void setFdBuyoutamount(BigDecimal fdBuyoutamount) {
		this.fdBuyoutamount = fdBuyoutamount;
	}
	
	/**
	 * get the fdPunishmentamount - 隐患终审处罚
	 * @return the fdPunishmentamount
	 */
	public BigDecimal getFdPunishmentamount() {
		return this.fdPunishmentamount;
	}
	
	/**
	 * set the fdPunishmentamount - 隐患终审处罚
	 */
	public void setFdPunishmentamount(BigDecimal fdPunishmentamount) {
		this.fdPunishmentamount = fdPunishmentamount;
	}
	
	/**
	 * get the fdPenaltyamount - 违章处罚
	 * @return the fdPenaltyamount
	 */
	public BigDecimal getFdPenaltyamount() {
		return this.fdPenaltyamount;
	}
	
	/**
	 * set the fdPenaltyamount - 违章处罚
	 */
	public void setFdPenaltyamount(BigDecimal fdPenaltyamount) {
		this.fdPenaltyamount = fdPenaltyamount;
	}
	
	/**
	 * get the fdOtheramount - 其他处罚
	 * @return the fdOtheramount
	 */
	public BigDecimal getFdOtheramount() {
		return this.fdOtheramount;
	}
	
	/**
	 * set the fdOtheramount - 其他处罚
	 */
	public void setFdOtheramount(BigDecimal fdOtheramount) {
		this.fdOtheramount = fdOtheramount;
	}
	
	/**
	 * get the fdAccidentamount - 事故处罚
	 * @return the fdAccidentamount
	 */
	public BigDecimal getFdAccidentamount() {
		return this.fdAccidentamount;
	}
	
	/**
	 * set the fdAccidentamount - 事故处罚
	 */
	public void setFdAccidentamount(BigDecimal fdAccidentamount) {
		this.fdAccidentamount = fdAccidentamount;
	}
	
	/**
	 * get the fdTotalamount - 总金额
	 * @return the fdTotalamount
	 */
	public BigDecimal getFdTotalamount() {
		return this.fdTotalamount;
	}
	
	/**
	 * set the fdTotalamount - 总金额
	 */
	public void setFdTotalamount(BigDecimal fdTotalamount) {
		this.fdTotalamount = fdTotalamount;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdEmployeename(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEmployeename")), fdEmployeename));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdDepartmentrolename(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentrolename")), fdDepartmentrolename));
		setFdBuyoutamount(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdBuyoutamount")), fdBuyoutamount));
		setFdPunishmentamount(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdPunishmentamount")), fdPunishmentamount));
		setFdPenaltyamount(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdPenaltyamount")), fdPenaltyamount));
		setFdOtheramount(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdOtheramount")), fdOtheramount));
		setFdAccidentamount(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdAccidentamount")), fdAccidentamount));
		setFdTotalamount(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdTotalamount")), fdTotalamount));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdEmployeename",StringUtils.toString(fdEmployeename, eiMetadata.getMeta("fdEmployeename")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdDepartmentrolename",StringUtils.toString(fdDepartmentrolename, eiMetadata.getMeta("fdDepartmentrolename")));	
			map.put("fdBuyoutamount",StringUtils.toString(fdBuyoutamount, eiMetadata.getMeta("fdBuyoutamount")));	
			map.put("fdPunishmentamount",StringUtils.toString(fdPunishmentamount, eiMetadata.getMeta("fdPunishmentamount")));	
			map.put("fdPenaltyamount",StringUtils.toString(fdPenaltyamount, eiMetadata.getMeta("fdPenaltyamount")));	
			map.put("fdOtheramount",StringUtils.toString(fdOtheramount, eiMetadata.getMeta("fdOtheramount")));	
			map.put("fdAccidentamount",StringUtils.toString(fdAccidentamount, eiMetadata.getMeta("fdAccidentamount")));	
			map.put("fdTotalamount",StringUtils.toString(fdTotalamount, eiMetadata.getMeta("fdTotalamount")));	
			
		return map;
	
	}
}